<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script> -->
    <script src="../node_modules/vue/dist/vue.global.js"></script>
</head>

<body>
    <div id="app">
        <!-- 文本框 -->
        <input type="textarea" v-model="message1">
        <!-- 单个复选框 -->
        <!-- <input type="checkbox" v-model="checkboxflag"> -->
        <!-- 多选框 -->
        <p>
            <input type="checkbox" value="html" v-model="checkedArr">前端
            <input type="checkbox" value="java" v-model="checkedArr">java
            <input type="checkbox" value="python" v-model="checkedArr">python
        </p>
        <!--单选框  -->
        <p>
            <input type="radio" name="sex" value="男" v-model="radiochecked"> 男
            <input type="radio" name="sex" value="女" v-model="radiochecked"> 女
        </p>
        <!--下拉框 -->
        <select name="" id="" v-model="selected">
            <option value="0">奔驰400</option>
            <option value="1">北京四合院</option>
            <option value="2">刘亦菲男朋友</option>
        </select>

    </div>
</body>

</html>
<script>
    const { createApp } = Vue;
    const vm = createApp({
        data() {
            return {
                message1: 'Hello',
                checkboxflag: true,
                checkedArr: ['html', 'python'],
                radiochecked: '女',
                selected: 2
            }
        }
    }).mount('#app') 
</script>